/**
 * Copyright [2019] [LiBo/Alex of copyright liboware@gmail.com ]
 * <p>
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * <p>
 * http://www.apache.org/licenses/LICENSE-2.0
 * <p>
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.hyts.dess.base.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

import java.util.Date;

/**
 * @project-name:dess
 * @package-name:com.hyts.dess.base.bean
 * @author:LiBo/Alex
 * @create-date:2020-10-12 14:21
 * @copyright:libo-alex4java
 * @email:liboware@gmail.com
 * @description:
 */
@EqualsAndHashCode
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder
@Data
public class BaseDO {

    /**
     * id主键操作
     */
    @TableId(type=IdType.AUTO)
    @EqualsAndHashCode.Include
    private Long id;

    /**
     * 创建时间
     */
    @EqualsAndHashCode.Exclude
    private Date createTime;

    /**
     * 创建用户id
     */
    @EqualsAndHashCode.Exclude
    private Long createUserId;

    /**
     * 修改时间
     */
    @EqualsAndHashCode.Exclude
    private Date updateTime;

    /**
     * 修改用户id
     */
    @EqualsAndHashCode.Exclude
    private Long updateUserId;

    /**
     * 备注信息
     */
    @EqualsAndHashCode.Exclude
    private String remark;

    /**
     * 是否删除
     */
    @EqualsAndHashCode.Exclude
    private Byte isDel;
}
